<?php

class GalactusViewTeam extends GalactusView {

	function __construct($control) {
		GalactusView::__construct($control);
	}

	public function retrieveCSS( ) {
		return '
			.team-items li:nth-child(3n + 4) {
				margin-left: 0px !important;
			}

			.team-items li {
				border: 1px solid #ccc;
				border-radius: 10px;
			}

			.team-image {
				border-right: 1px solid #ccc;
				border-top-left-radius: 10px;
				border-bottom-left-radius: 10px;
			}
		';
	}

	public function show( ) {
		$people = array(
			array(
				"name" => "Thiago Medeiros de Menezes",
				"photo" => URL."images/photo-01.jpg",
				"email" => "thiago.mennezes@gmail.com",
				"role" => "Autor deste trabalho"
			),
			array(
				"name" => "Marco César Goldbarg",
				"photo" => URL."images/photo-02.jpg",
				"email" => "gold@dimap.ufrn.br",
				"role" => "Professor orientador"
			),
			array(
				"name" => "José Dias do Nascimento Jr.",
				"photo" => URL."images/photo-03.jpg",
				"email" => "dias@dfte.ufrn.br",
				"role" => "Professor coorientador"
			),
			array(
				"name" => "Antônio Araújo Sobrinho",
				"photo" => URL."images/photo-04.jpg",
				"email" => "antonio.araujo@ifrn.edu.br",
				"role" => "Professor coorientador"
			)
		);
		$content = "";
		for($i = 0; $i < count($people); ++$i) {
			$content .= '
				<li class="span4 shadowoutter">
					<img src="'.$people[$i]["photo"].'" class="span3 team-image" />
					<div class="span9 team-text">
						<strong>'.$people[$i]["name"].'</strong><br />
						<span class="muted">'.$people[$i]["email"].'</span><br />
						'.$people[$i]["role"].'
					</div>
				</li>
			';			
		}
		echo '
			<div class="container-fluid">
				<div class="row-fluid">
					<ul class="thumbnails team-items">'.$content.'</ul>
				</div>
			</div>
		';
	}
}
?>
